<template>
    <div class="orderdetail">
      <div class="order_hander">
        <h1 class="order_title">订单管理</h1>
      </div>
      <div class="order_content">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="订单号">
            <el-input disabled placeholder="请输入商品名称" v-model="form.orderNo"></el-input>
          </el-form-item>
          <el-form-item label="创建时间">
            <el-input disabled placeholder="请输入商品描述" v-model="form.createTime"></el-input>
          </el-form-item>
          <el-form-item label="收件人">
            <el-input disabled placeholder="请输入商品描述" v-model="form.receiverName"></el-input>
          </el-form-item>
          <el-form-item label="订单状态">
            <el-input disabled placeholder="请输入商品描述" v-model="form.statusDesc"></el-input>
          </el-form-item>
          <el-form-item label="支付方式">
            <el-input disabled placeholder="请输入商品描述" v-model="form.paymentTypeDesc"></el-input>
          </el-form-item>
          <el-form-item label="订单金额">
            <el-input disabled placeholder="请输入商品描述" v-model="form.payment"></el-input>
          </el-form-item>
  
          <el-table :data="form.orderItemVoList" stripe border style="width: 100%">
            <el-table-column prop="productImage" label="头像" width="100">
              <template slot-scope="scope">
                <img :src="'http://img.happymmall.com/'+scope.row.productImage" class="image" />
              </template>
            </el-table-column>
  
            <el-table-column prop="productName" label="商品信息" width="380"></el-table-column>
            <el-table-column prop="currentUnitPrice" label="单价"></el-table-column>
            <el-table-column prop="quantity" label="数量"></el-table-column>
            <el-table-column prop="totalPrice" label="合计"></el-table-column>
          </el-table>
        </el-form>
      </div>
    </div>
  </template>
  
  
  <script>
  import { orderId } from "../../request/http";
  export default {
      name:"orderdetail",
    data() {
      return {
        form: {}
      };
    },
    mounted() {
      orderId(this.$route.query.data).then(res => {
        this.form = res.data.data.list[0];
      });
    },
    methods: {}
  };
  </script>
  
  
  <style lang="scss" scoped>
  .image {
    width: 90%;
  }
  .order_content {
   
  }
  .order_hander {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .order_title {
    display: inline-block;
    font-weight: normal;
  }
  .order_xq {
   
  }
  </style>